﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Threading.Tasks;
using System.IO;
using System.Configuration;

namespace BTS10_To_BTS13_Party_Converter
{
    class PartyConverter
    {
        static void Main(string[] args)
        {
            try
            {
                XmlDocument xDoc = new XmlDocument();
                string inputpath = ConfigurationManager.AppSettings["InputPath"];
                xDoc.Load(inputpath);
                PartyConfig party = new PartyConfig();
                xDoc = party.migratetoBTS13(xDoc);
                string outputpath = ConfigurationManager.AppSettings["OutputPath"];
                xDoc.Save(outputpath);
            }
            catch (Exception Ex)
            {
                Console.WriteLine(Ex.Message);
                Console.ReadLine();
            }
        }
    }
}
